package com.nsgf.library.data.bean;

import com.nsgf.skjz.utils.StringUtil;

public class FloodBulletinBean {
    private Object id;
    private String publishTime;
    private String projectCode;
    private String waterLevel;
    private String warningLevel;
    private String xunxianLevel;
    private String rainfallStartTime;
    private String rainfallEndTime;
    private String totalRainfall;
    private String maxRainfallIntensity;
    private Object createTime;
    private Object updateTime;
    private Object waterStatus;
    private Object rainfallStatus;

    public Object getId() {
        return id;
    }

    public void setId(Object id) {
        this.id = id;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public String getFloodSituationProjectSrc() {
        return UserInfo.getInstance().getProjectName() + "水位：" + getWaterLevel() + "m";
    }

    public String getStartOrEndTime() {
        return "降雨时段：" + (StringUtil.isEmpty(rainfallStartTime) ? "--" : rainfallStartTime) + " ~ " + (StringUtil.isEmpty(rainfallEndTime) ? "--" : rainfallEndTime);
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getWaterLevel() {
        return StringUtil.isEmpty(waterLevel) ? "--" : waterLevel;
    }

    public void setWaterLevel(String waterLevel) {
        this.waterLevel = waterLevel;
    }

    public String getWarningLevel() {
        return warningLevel;
    }

    public void setWarningLevel(String warningLevel) {
        this.warningLevel = warningLevel;
    }

    public String getXunxianLevel() {
        return "（汛限水位" + (StringUtil.isEmpty(xunxianLevel) ? "--" : xunxianLevel) + "m）";
    }

    public void setXunxianLevel(String xunxianLevel) {
        this.xunxianLevel = xunxianLevel;
    }

    public String getRainfallStartTime() {
        return rainfallStartTime;
    }

    public void setRainfallStartTime(String rainfallStartTime) {
        this.rainfallStartTime = rainfallStartTime;
    }

    public String getRainfallEndTime() {
        return rainfallEndTime;
    }

    public void setRainfallEndTime(String rainfallEndTime) {
        this.rainfallEndTime = rainfallEndTime;
    }

    public String getTotalRainfall() {
        return "累计降雨量：" + (StringUtil.isEmpty(totalRainfall) ? "--" : totalRainfall) + "mm";
    }

    public void setTotalRainfall(String totalRainfall) {
        this.totalRainfall = totalRainfall;
    }

    public String getMaxRainfallIntensity() {
        return "最大雨强：" + (StringUtil.isEmpty(maxRainfallIntensity) ? "--" : maxRainfallIntensity) + "mm/h";
    }

    public void setMaxRainfallIntensity(String maxRainfallIntensity) {
        this.maxRainfallIntensity = maxRainfallIntensity;
    }

    public Object getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Object createTime) {
        this.createTime = createTime;
    }

    public Object getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Object updateTime) {
        this.updateTime = updateTime;
    }

    public Object getWaterStatus() {
        return waterStatus;
    }

    public void setWaterStatus(Object waterStatus) {
        this.waterStatus = waterStatus;
    }

    public Object getRainfallStatus() {
        return rainfallStatus;
    }

    public void setRainfallStatus(Object rainfallStatus) {
        this.rainfallStatus = rainfallStatus;
    }
}
